package com.senior.sendmessage.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Baijl
 * @version 0.0.1
 * @date 2021-12-12 13:04
 * @description TODO
 */
@Data
@NoArgsConstructor
public class CityListDTO {
    @JsonProperty("reason")
    private String reason;
    @JsonProperty("result")
    private List<ResultDTO> result;
    @JsonProperty("error_code")
    private Integer errorCode;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("id")
        private String id;
        @JsonProperty("province")
        private String province;
        @JsonProperty("city")
        private String city;
        @JsonProperty("district")
        private String district;
    }
}
